<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>0-100的阶乘</title>
</head>

<body>
  <script>
    function factorial(a) {
      if (a <= 1) return 1;
      return a * factorial(a - 1);
    }
    console.log(factorial(3.14159));
  </script>
</body>

</html>